package com.buer.storage.dto;

import com.buer.storage.utils.FieldMeta;
import com.buer.storage.utils.TableMeta;

import java.util.Date;

/**
 * Created by Administrator on 2021/1/30.
 */
@TableMeta(name="批量新增模板",maxCount=20000,keyEnabled=true)
public class WorderExcelDto {

    @FieldMeta(name="序号",nullable=false)
    private int id; //序号

    @FieldMeta(name="装备大类",nullable=false)
    private String bigEquipment; //装备大类

    @FieldMeta(name="装备细类",nullable=false)
    private String smallEquipment; //装备细类

    @FieldMeta(name="装备名称",nullable=false)
    private String equipmentName; //装备名称

    @FieldMeta(name="数量",nullable=false,regex = "^\\d+$")
    private int num; //数量

    @FieldMeta(name="单位")
    private String emit; //单位

    @FieldMeta(name="采购单价",nullable =false,regex = "^\\d+(\\.\\d+)?$")
    private double price; //采购单价

    @FieldMeta(name="规格型号",nullable=false)
    private String Specification; //规格型号

    @FieldMeta(name="供应商名称",nullable=false)
    private String supplier; //供应商名称

    @FieldMeta(name="库区",nullable=false)
    private String area; //库区

    @FieldMeta(name="库位",nullable=false)
    private String location; //库位

    @FieldMeta(name="到期时间",format="yyyy-MM-dd")
    private Date expireDate; //到期时间

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBigEquipment() {
        return bigEquipment;
    }

    public void setBigEquipment(String bigEquipment) {
        this.bigEquipment = bigEquipment;
    }

    public String getSmallEquipment() {
        return smallEquipment;
    }

    public void setSmallEquipment(String smallEquipment) {
        this.smallEquipment = smallEquipment;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getEmit() {
        return emit;
    }

    public void setEmit(String emit) {
        this.emit = emit;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSpecification() {
        return Specification;
    }

    public void setSpecification(String specification) {
        Specification = specification;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }
}
